home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ShowValidClasspath.java < prev    next >
Text File  |  1998-09-27  |  996b  |  50 lines

  1. package com.symantec.itools.tools.utilities;
  2.  
  3.  
  4. import java.applet.Applet;
  5. import com.symantec.itools.lang.Classpath;
  6.  
  7.  
  8. /**
  9.  * @author Symantec Internet Tools Division
  10.  * @version 1.0
  11.  * @since VCafe 3.0
  12.  */
  13.  
  14. public class ShowValidClasspath
  15.     extends Applet
  16. {
  17.     public ShowValidClasspath()
  18.     {
  19.     }
  20.     
  21.     public void init()
  22.     {
  23.         try
  24.         {
  25.             String[] classpath;
  26.  
  27.             classpath = new Classpath().getValidClasspath();
  28.  
  29.             System.out.println("Valid CLASSPATH entries:\n");
  30.  
  31.             for(int i = 0; i < classpath.length; i++)
  32.             {
  33.                 System.out.println("   " + classpath[i]);
  34.             }
  35.         }
  36.         catch(SecurityException ex)
  37.         {
  38.             System.out.println("Security Excpetion");
  39.         }
  40.     }
  41.  
  42.     /**
  43.      * @param argv TODO
  44.      * @since VCafe 3.0
  45.      */
  46.     public static void main(String[] argv)
  47.     {
  48.         new ShowValidClasspath().init();
  49.     }
  50. }